const { smart } = require("webpack-merge");
const base = require("./webpack.config");
const webpack = require("webpack");

const dev = {
  mode: "development",
  plugins: [
    new webpack.HotModuleReplacementPlugin(),
    new webpack.DefinePlugin({
      "process.env.NODE_ENV": JSON.stringify("development"),
    }),
  ],
  devServer: {
    contentBase: "./dist",
    port: 9123,
    hot: true,
    headers: { "Access-Control-Allow-Origin": "*" },
  },
};
module.exports = smart(base, dev);
